package com.xpc.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xpc.mapper.AdministratorMapper;
import com.xpc.pojo.Administrator;
import com.xpc.service.IAdministratorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 管理员账号表(Administrator)表服务实现类
 *
 * @author makejava
 * @since 2022-04-25 22:22:02
 */
@Service("administratorService")
public class AdministratorServiceImpl extends ServiceImpl<AdministratorMapper, Administrator> implements IAdministratorService {

    @Autowired
    private AdministratorMapper administratorMapper ;

    @Override
    public Page<Administrator> getPage(int currentPage, int pageSize) {
        Page page = new Page(currentPage, pageSize);
        administratorMapper.selectPage(page,null);
        return page;

    }
}

